/**
 * @author baz
 */
package mvc.controller {
import bot.weapon.FireBall;
import bot.weapon.FireBallVO;
import bot.weapon.WeaponEvent;

import mvc.model.GameModel;

import org.robotlegs.mvcs.Command;

public class FireBallShotCmd extends Command {

    [Inject]
    public var event:WeaponEvent;

    [Inject]
    public var gameModel:GameModel;

    override public function execute():void {
        var fireBall:FireBall = new FireBall(FireBallVO(event.data));
        contextView.addChild(fireBall);
        gameModel.interactiveObjects.push(fireBall);
    }
}
}
